﻿
@using System.Data;
@{
    Layout = null;
   
}

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="/common/css/sapar.css?v=@GatewayServer.Common.VersionNo.VNo" />
    <link rel="stylesheet" href="/common/css/index_inner.css?v=@GatewayServer.Common.VersionNo.VNo" />

    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=8">

    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>Main</title>
</head>
<body >
    <div id="container">
        <div id="bd">
            <div class="wrap clearfix">
                <div class="sidebar">
                    <h2 class="sidebar-header">
                    <p>@ViewBag.PMenuName</p></h2>
                    <ul class="nav">
                        @*<li class="system"><div class="nav-header"><a href="javascript:;" data-src="pwd_modify.html" class="clearfix"><span>数据清单</span><i class="icon"></i></a></div></li>*@



                       
                            @foreach (DataRow item in ((ViewData["DataList"]) as DataTable).Rows)
                            {
                            DataTable ListModel = new ServiceWeb.WebAdmin.ServiceSystemMenu().GetList(new Guid(item["Menu_Guid"].ToString()), (MagerLoginInfo)ViewData["LoginUserInfo"]);
                                <li class="@item["Menu_IconCss"]">
                                    <div class="nav-header">
                                        <a href="javascript:;" @(string.IsNullOrEmpty(item["Menu_LinkUrl"].ToString()) ? "" : "data-src=" + @item["Menu_LinkUrl"] + "") class="clearfix">
                                            <span style="min-width:57px;">@(item["Menu_Name"])</span>
                                            <span id="lab_Menu_@item["menu_guid"].ToString().ToUpper()" style="color:red"></span>
                                        <i class="icon"></i>
                                        </a>
                                        
                                    </div>
                                  @if (ListModel.Rows.Count > 0)
                                  {
                                        <ul class='subnav'>
                                            @foreach (DataRow itemChild in ListModel.Rows)
                                            {
                                                <li><a href="javascript:;" @(string.IsNullOrEmpty(itemChild["Menu_LinkUrl"].ToString()) ? "" : "data-src=" + @itemChild["Menu_LinkUrl"] + "")>@(itemChild["Menu_Name"])</a></li>
                                            }
                                        </ul>
                                  }
                                </li>
                            }
                        

                        @*<li class="gongwen">
                                <div class="nav-header">
                                    <a href="javascript:;"  class="clearfix">
                                        <span>数据报表</span><i class="icon"></i>
                                    </a>
                                </div>
                                <ul class="subnav">
                                    <li><a href="javascript:;" data-src="//MyJsp.jsp">个人报表</a></li>
                                    <li><a href="javascript:;" data-src="my_order.html">项目报表</a></li>

                                </ul>
                            </li>*@
                    </ul>
                </div>
                <div class="content" >
                    <iframe src="@ViewBag.URL" id="iframe" name="iframe" style="width:100%;height:100%" frameborder="0"></iframe>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function RefreshIframe() {
            setTimeout("Refreshfun()", 1000)
        }
        function Refreshfun() {
            window.frames["iframe"].document.getElementById("hid_pageIndex").value = window.frames["iframe"].document.getElementById("hid_pageIndex_temp").value;
            window.frames["iframe"].document.getElementById('but_Search').click();
        }
    </script>

    <script type="text/javascript" src="/common/js/jquery.js"></script>
    <script type="text/javascript" src="/common/js/sapar.js"></script>
    <script type="text/javascript" src="/common/js/index_inner.js"></script>
    <script  type="text/javascript" src="/Menu/Init.js?v=@GatewayServer.Common.VersionNo.VNo"></script>
</body>
</html>
